// 统一管理api接口
// 打包环境
// const busiPrefix = 'personzone'; // 业务的前缀
// 开发环境
const busiPrefix = 'person/personzone'; // 业务的前缀
export const busiApi = {
    // 资源
    resource: {
        resourceListCity: busiPrefix + "/pserson/resource/list/city", // 市
        resourceListCounty: busiPrefix + "/pserson/resource/list/county", // 区县
        resourceListYear: busiPrefix + "/pserson/resource/list/year", // 年份
        resourcePost: busiPrefix + "/pserson/resource", // 新增-文件上传走upload
        resourcePut: busiPrefix + "/pserson/resource", // 修改-旧值回传
        resourceDel: busiPrefix + "/pserson/resource", // 删除-可批量
        resourceDownNum: busiPrefix + "/pserson/resource/download/num", // 修改-下载数量-每次加1
        resourceGrade: busiPrefix + "/pserson/resource/list/grade", // 册别
        resourceLearn: busiPrefix + "/pserson/resource/list/learn", // 阶段
        resourceProvince: busiPrefix + "/pserson/resource/list/province", // 省份
        resourceSubject: busiPrefix + "/pserson/resource/list/subject", // 学科
        resourceType1: busiPrefix + "/pserson/resource/list/type1", // 一级分类
        resourceType2: busiPrefix + "/pserson/resource/list/type2", // 二级分类
        resourceVersion: busiPrefix + "/pserson/resource/list/version", // 版本
        resourcePage: busiPrefix + "/pserson/resource/page", // 分页
    },
    // 教研相关接口
    research: {
        hotAchievement: busiPrefix + "/home/teachresearch/activity/hotAchievement", // 热门成果
        hotActivity: busiPrefix + "/home/teachresearch/activity/hotActivity", // 热门活动
        hotTeachingResearchGroup: busiPrefix + "/home/teachresearch/activity/hotTeachingResearchGroup", // 热门教研组
        researchSearch: busiPrefix + "/home/teachresearch/search", // 首页手搜索接口
        researchUserStatis: busiPrefix + "/home/teachresearch/page/user/statis", // 分页查询校验下的活跃、热门用户
        researchStatis: busiPrefix + "/home/teachresearch/activity/statis", // 统计数据
        // 教研活动
        activityUpdate: busiPrefix + "/home/teachresearch/activity/update", // 更新
        activityPage: busiPrefix + "/home/teachresearch/activity/page", // 
        activityDel: busiPrefix + "/home/teachresearch/activity/del", // 
        activityCreate: busiPrefix + "/home/teachresearch/activity/create", // 

        // 教研下教研组
        groupUpdate: busiPrefix + "/teachresearch/group/update", // 更新
        groupPage: busiPrefix + "/teachresearch/group/page", // 
        groupDel: busiPrefix + "/teachresearch/group/del", // 
        groupCreate: busiPrefix + "/teachresearch/group/create", // 
        // 教研分组
        groupUserCreate: busiPrefix + "/teachresearch/group/user/create", // 新增-身份证-组id必传
        groupUserDel: busiPrefix + "/teachresearch/group/user/del", // 批量删除
        groupUserPage: busiPrefix + "/teachresearch/group/user/page", // 列表-根据分组id-加载
        groupUserUpdate: busiPrefix + "/teachresearch/group/user/update", // 更新:可更新分组id，是否组长
    },
    // 收藏相关接口
    collect: {
        collectAdd: busiPrefix + "/personzone/collect/add", // 
        collectDel: busiPrefix + "/personzone/collect/article/del", // 收藏删除-可批量
        collectPage: busiPrefix + "/personzone/collect/page", // 分页查询收藏列表-此时id为文章、相册id,试卷
    },
    // 访客类接口
    visitorAll: {
        visitorAdd: busiPrefix + "/visitor", // 添加访客记录
        visitorPageTotal: busiPrefix + "/visitor/page/total", // 总的访客,id点击的用户id,或者自己的的id
        visitorPageToday: busiPrefix + "/visitor/page/today", // 今日访客,id点击的用户id,或者自己的的id
        getVisitorList: busiPrefix + "/visitor/page", // 最新访客列表
        // getVisitorList: busiPrefix + "/visitor/page/newest", // 最新访客列表
        articleClassificationSave: busiPrefix + "/visitorAll/articleClassificationSave", // 增加访客
    },

    // 个人中心管理接口
    personal: {
        getSchoolclass: busiPrefix + "/personzone/personal/schoolclass", // 获取登陆者的班级id 学校id
        getVisitAndHidePower: busiPrefix + "/personzone/personal/getVisitAndHidePower", // 获取隐私权限
        visitAndHidePower: busiPrefix + "/personzone/personal/changeHidePower", // 隐私设置
        operateRelevanceList: busiPrefix + "/personzone/personal/list/relevance", // 关联列表
        operateRelevance: busiPrefix + "/personzone/personal/operateRelevance", // 操作关联用户
        deleteRelevanceByid: busiPrefix + "/personzone/personal/deleteRelevanceByid", // 根据删除关联编号关联信息
        getPrivacyInfo: busiPrefix + "/personzone/personal/getPrivacyInfo", // 接口的功能介绍
        getRelevanceByid: busiPrefix + "/personzone/personal/getRelevanceByid", // 根据关联编号查询关联信息
        operateRelevance: busiPrefix + "/personzone/personal/operateRelevance", // 操作关联用户
        spatial: busiPrefix + "/personzone/personal/spatial", // 个人空间访问记录统计
        updatePassword: busiPrefix + "/personzone/personal/updatePassword", // 修改密码
        updatePortrait: busiPrefix + "/personzone/personal/updatePortrait", // 更换头像
        updateUser: busiPrefix + "/personzone/personal/updateUser", // 修改用户信息
        userInfo: busiPrefix + "/personzone/personal/userInfo", // 根据用户ID获取个人信息
    },

    // 公共方法
    common: {
        checkVisitor: busiPrefix + "/personzone/personal/check/visitor", // 个人空间访问权限-返回成功即能访问
        myTask: busiPrefix + "/task/my", // 我的任务列表
        getApplication: busiPrefix + "/application/getApplication", // 应用--用户角色权限所对应的应用
        menuTab: busiPrefix + "/menu/tab", // 首页tab菜单
        messageNotice: busiPrefix + "/message/notice", // 通知消息通知
        messageCommon: busiPrefix + "/message/common", // 通用消息通知
        messageComfirm: busiPrefix + "/message/comfirm", // 确认消息通知
        privacy: busiPrefix + "/MyPublic/dictionaries/privacy", // 获取权限下拉
        uploadImage: busiPrefix + "/upload/image", // 上传单张图片信息,注意：图片的name必须为file
        uploadImages: busiPrefix + "/upload/images", // 上传图片-批量，注意：多图上传时每个图片的name必须保证唯一
    },

    //学生端-界面-关注
    studentAnswering: {
        friendDel: busiPrefix + "/student/answering/friend/del", // 删除好友
        groupUpdate: busiPrefix + "/student/answering/concern/group/update", // 修改分组信息
        groupDel: busiPrefix + "/student/answering/concern/group/del", // 移除分组，分组下有好友，禁止删除
        concernedAllList: busiPrefix + "/student/answering/concernedAllList", // 关注-左侧关注列表-(关注(全部关注、已分组、未分组)、好友(全部、未分组、已分组)、粉丝(全部、已分组、未分组))
        addFollow: busiPrefix + "/student/answering/addFollow", // 关注-粉丝-已关注(添加关注)
        groupMove: busiPrefix + "/student/answering/group/move", // 移动用户到分组-批量
        backlist: busiPrefix + "/student/answering/backlist", // 关注-黑名单-列表展示
        backlistjoin: busiPrefix + "/student/answering/backlistjoin", // 关注-粉丝-加入黑名单
        beanlist: busiPrefix + "/student/answering/beanlist", // 关注-粉丝-右侧列表
        beanremove: busiPrefix + "/student/answering/beanremove", // 关注-粉丝-移除粉丝
        blackremove: busiPrefix + "/student/answering/blackremove", // 关注-粉丝-移除黑名单
        concerndList: busiPrefix + "/student/answering/concerndList", // 关注-右侧列表
        concernedTreeList: busiPrefix + "/student/answering/concernedTreeList", // 关注-左侧关注列表
        concernSave: busiPrefix + "/student/answering/concernSave", // 关注-右侧列表-创建分组
        recommend: busiPrefix + "/student/answering/recommend", // 关注-好友推荐
        remark: busiPrefix + "/student/answering/remark", // 关注-粉丝、关注-备注名
        selectGroup: busiPrefix + "/student/answering/selectGroup", // 关注-粉丝-当前用户下的分组
        updateGroup: busiPrefix + "/student/answering/updateGroup", // 关注-粉丝-添加为当前用户下的分组内

    },

    // 学生端-界面-提问答疑
    invitation: {
        answeringDel: busiPrefix + "/invitation/answering/del", // 帖子删除-可批量
        centent: busiPrefix + "/invitation/answering/centent", // 提问答疑-帖子内容-（帖子详细）
        doClickInvition: busiPrefix + "/invitation/answering/doClickInvition", // 提问答疑-点击帖子，点击数加1
        list: busiPrefix + "/invitation/answering/list", // 提问答疑-帖子列表（我的帖，全部帖，排序方式）
        publish: busiPrefix + "/invitation/answering/publish", // 提问答疑-回复帖子-发表评论
        questions: busiPrefix + "/invitation/answering/questions", // 提问答疑-发帖子-发表评论
    },

    // 文章类
    article: {
        lastAndNextArticle: busiPrefix + "/student/article/lastAndNextArticle", // 文章——上/下一篇文章
        schoolArticleList: busiPrefix + "/school/articleList", // 文章列表/草稿箱列表
        articleSchool: busiPrefix + "/student/article/school", // 学校首页-文章系列
        articleNewest: busiPrefix + "/student/article/newest", // 首页-最新文章列表
        articleTransmit: busiPrefix + "/student/article/transmit", // 文章转发
        articleSetting: busiPrefix + "/zone/setting", // 空间设置--更新
        articleGetSetting: busiPrefix + "/zone/setting", // 空间设置--查询
        articleCalendar: busiPrefix + "/student/articleCalendar", // 文章日历查询
        articleClassificationDelete: busiPrefix + "/student/articleClassificationDelete", // 文章批量删除
        articleClassificationList: busiPrefix + "/student/articleClassificationList", // 文章管理分类列表
        articleClassificationMove: busiPrefix + "/student/articleClassificationMove", // 文章批量修改分类 
        articleClassificationSave: busiPrefix + "/student/articleClassificationSave", // 文章管理分类编辑/添加
        articleFriendContent: busiPrefix + "/student/articleFriendContent", // 好友文章内容
        articleFriendList: busiPrefix + "/student/articleFriendList", // 好友文章列表
        articleIssue: busiPrefix + "/student/articleIssue", // 写文章
        schoolArticleIssue: busiPrefix + "/school/articleIssue", // 教研写文章
        articleJurisdictionUpdate: busiPrefix + "/student/articleJurisdictionUpdate", // 文章权限设置
        articleList: busiPrefix + "/student/articleList", // 文章列表/草稿箱列表,
        del: busiPrefix + "/student/article/type/del", // 文章管理分类删除,
        jurisdiction: busiPrefix + "/student/article/jurisdiction", // 文章权限设置,
        articlesDel: busiPrefix + "/student/article/del", // 文章批量删除,
        classify: busiPrefix + "/student/article/classify", // 文章批量修改分类,
    },

    // 消息管理接口
    message: {
        fingByUserId: busiPrefix + "/message/fingByUserId", // 我的任务列表
        read: busiPrefix + "/message/read", // 通知消息标记已读/未读
        list: busiPrefix + "/message/list", // 消息显示列表
        remind: busiPrefix + "/message/remind", // 消息确认列表
        sendDirectMessage: busiPrefix + "/message/sendDirectMessage", // 消息发送
        updateMessage: busiPrefix + "/message/updateMessage", // 消息确认（确认，拒绝）
        updateOrDel: busiPrefix + "/message/updateOrDel", // 消息批量确认或删除
    },

    // 点赞
    give: {
        giveAdd: busiPrefix + "/personzone/give/add", // 相册-照片-点赞/取消点赞
        addGive: busiPrefix + "/personzone/give/addGive", // 相册-照片-新建点赞
        pageCommentlist: busiPrefix + "/personzone/give/pageCommentlist", // 相册分页点赞列表-查询
    },

    // 用户管理接口
    user: {
        findByUserIdInfo: busiPrefix + "/user/findByUserIdInfo", // 根据ID或用户信息
        index: busiPrefix + "/user/index", // 接口的功能介绍
        login: busiPrefix + "/user/login", // 用户登录
        // login: busiPrefix + "/login", // 用户远程登录
    },

    // 相册管理
    photoalbum: {
        photoGive: busiPrefix + "/personzone/give/give", // 相册-照片-点赞/取消点赞
        photoForwardO: busiPrefix + "/personzone/album/photo/pictrure/forward", // 相片转发
        pictrureComment: busiPrefix + "/personzone/album/page/pictrure/comment", // 相片评论列表
        pictrureForward: busiPrefix + "/personzone/album/page/pictrure/forward", // 相片转发列表
        pictrureGive: busiPrefix + "/personzone/album/page/pictrure/give", // 相片点赞列表
        albumReprintFriends: busiPrefix + "/personzone/album/photo/reprintFriends", // 转载好友相册的图片
        albumPageSchool: busiPrefix + "/personzone/album/page/school", // 分页查询相册列表-学校
        albumCreateSchool: busiPrefix + "/personzone/album/create/school", // 新建相册-学校班级教研共用
        pictureSchool: busiPrefix + "/personzone/album/page/picture/school", // 学校主页，相片列表
        albumVisitorPage: busiPrefix + "/personzone/album/visitor/page", // 相册总的访问列表
        albumPhotoMove: busiPrefix + "/personzone/album/photo/move", // 移动相片信息
        albumPageFriend: busiPrefix + "/personzone/album/page/friend", // 分页查询相册列表-好友相册
        addPhotoalbum: busiPrefix + "/personzone/album/create", // 新建相册
        batchDeletePicture: busiPrefix + "/personzone/album/del/picture", // 批量删除相片
        pagePhotoalbumlist: busiPrefix + "/personzone/album/page", // 分页查询相册列表
        pagePictureslist: busiPrefix + "/personzone/album/page/picture", // 分页查询相片列表
        permissionPhotoalbum: busiPrefix + "/personzone/photoalbum/permissionPhotoalbum", // 权限设置
        photoUpImgs: busiPrefix + "/personzone/album/photo/create", // 上传相片
        removePhotoalbum: busiPrefix + "/personzone/album/del", // 删除相册
        settingCoverPhotoalbum: busiPrefix + "/personzone/photoalbum/settingCoverPhotoalbum", // 设置封面
        updatePhotoalbum: busiPrefix + "/personzone/album/update", // 编辑相册
        updatePicture: busiPrefix + "/personzone/album/photo/update", // 编辑相片信息
        permission: busiPrefix + "/personzone/album/permission", // 权限设置
    },

    // 评论
    comment: {
        addGive: busiPrefix + "/personzone/comment/add", // 新建评论
        pageCommentlist: busiPrefix + "/personzone/comment/page", // 分页查询评论列表
        pageCommentlistReply: busiPrefix + "/personzone/comment/page/reply", // 分页查询评论的回复,参数中的id为评论的id
        replyDel: busiPrefix + "/personzone/comment/article/del", // 评论删除-可批量
    },

    // 通用文章接口管理
    commonArticle: {
        commonArticleList: busiPrefix + "/common/article/commonArticleList", // 获取文章信息列表（通用）
        dictionariesList: busiPrefix + "/common/article/dictionariesList", // 根据类型获取数据字典（下拉或者菜单）
        getArticleType: busiPrefix + "/common/article/getArticleType", // 根据文件类型获取文章信息（首页封面调用）
        getArticleUserId: busiPrefix + "/common/article/getArticleUserId", // 获取用户所有文章详情（上一篇，下一篇）
        getClassZoneList: busiPrefix + "/common/article/getClassZoneList", // 根据文件类型获取班级空间（首页封面调用）

    },

    // 首页-个人空间相册留言
    leave: {
        getMasterMessage: busiPrefix + "/leave/getMasterMessage", // 获取主人寄语
        latestPhotos: busiPrefix + "/personzone/album/latestPhotos", // 最新照片
        masterMessage: busiPrefix + "/leave/masterMessage", // 主人寄语
        replyLeave: busiPrefix + "/leave/replyLeave", // 回复留言
        deleteLeave: busiPrefix + "/leave/deleteLeave", // 删除留言
        getLeaveList: busiPrefix + "/leave/getLeaveList", // 留言列表
        insertLeave: busiPrefix + "/leave/insertLeave", // 新增留言
    },

    // 首页-个人空间，机构空间

    home: {
        collectQuestion: busiPrefix + "/studySpace/page/collect/question", // 收藏的试题
        collectWrongQuestion: busiPrefix + "/studySpace/page/wrong/question", // 收藏的错题本
        collectVideo: busiPrefix + "/studySpace/page/collect/video", // 收藏的视频
        studyVideo: busiPrefix + "/studySpace/page/study/video", // 学习过的视频
        bindEmail: busiPrefix + "/zone/setting/bind/email", // 绑定邮箱
        loadBindInfo: busiPrefix + "/zone/setting/load/bind/info", // 绑定邮箱
        signature: busiPrefix + "/zone/setting/signature", // 个性签名
        getWrongQuestion: busiPrefix + "/studySpace/getWrongQuestion", // 我的错题
        getQuestionsDone: busiPrefix + "/studySpace/getQuestionsDone", // 我做过的试题
        getCollectArticles: busiPrefix + "/studySpace/getCollectArticles", // 我的收藏
        homeSearch: busiPrefix + "/home/search", // 首页手搜索接口
        extStatistic: busiPrefix + "/home/person/ext/statistic", // 个人主页-文章-相册-资源的统计信息
        homeZoneUserList: busiPrefix + "/home/zoneUserList", // 首页按需查询系统用户
        homeExcellent: busiPrefix + "/home/page/excellent", // 优秀空间
        selectStage: busiPrefix + "/home/selectStage", // 阶段和科目下拉查询
        zoneList: busiPrefix + "/home/zoneList", // 个人空间，机构空间接口
    },

    // 动态
    dynamic: {
        dynamicPageSchool: busiPrefix + "/dynamic/page/school/class", // 学校首页-班级动态
        dynamicPage: busiPrefix + "/dynamic/page", // 动态-最新动态-个人中心动态-关注动态-班级动态-关学校动态-
    }


};